<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator" %>
<script type="text/javascript" src="js/jquery.js"></script>
<style type="text/css">

/*隐藏盒子设置*/
div.hidden-box{width:133px;position:absolute;display:none; top:29px;filter:alpha(opacity=80); -moz-opacity:0.8; opacity:0.8;}
.hidden-box>ul{list-style-type:none;color:#fff;cursor:pointer; padding-top:12px;padding-bottom:15px}
.hidden-box>ul li{ line-height:30px; height:30px; font-weight:500}
.hidden-box>ul li a:hover{background:#643519;color:#fff}

/*隐藏盒子位置设置*/
.hidden-loc-index{left:335px}
.hidden-loc-us{left:420px}
.box03{left:503px}
.box04{left:587px}
.box06{left:755px}

</style>
<div id="nav">
	<ul class="nav-main">
		<li class="dq"><a style="width:53px;" href="<c:url value="/showIndex.s" />">首页</a></li>
		<li id = "li-1"><a href="<c:url value="/views/jsp/cms/help/index_d.jsp?id=41" />">关于我们</a></li>
		<li id = "li-2"><a href="<c:url value="/views/jsp/cms/news/index_d.jsp" />">新闻动态</a></li>
		<li id = "li-3"><a href="<c:url value="/views/jsp/cms/help/_xc_index_d.jsp?id=ZS" />">质量管理</a></li>
		<li id = "li-4"><a href="<c:url value="/product/searchProduct.s" />">商品信息</a></li>
		<li id = "li-5"><a href="<c:url value="/news/searchPromoProductNews.s?newsTypeId=278" />">促销品种</a></li>
		<li id = "li-6" ><a href="<c:url value="/views/jsp/center/c_user_center.jsp" />">客户服务</a></li>
		<li id = "li-7" ><a href="<c:url value="/views/jsp/cms/help/index_d.jsp?id=271" />">联系我们</a></li>
		<c:choose>
			<c:when test="${not empty sessionScope.WEB_USER_TOKEN}">
				<li id = "li-8" ><a href="###" onclick="layer.feedBack()" style="margin-left: 2px;">用户反馈</a></li>
			</c:when>
			<c:when test="${not empty sessionScope.WEB_PROVIDER_TOKEN}">
				<li id = "li-8" ><a href="###" onclick="layer.feedBack()" style="margin-left: 2px;">用户反馈</a></li>
			</c:when>
			<c:when test="${not empty sessionScope.WEB_AGENT}">
				<li id = "li-8" ><a href="###" onclick="layer.feedBack()" style="margin-left: 2px;">用户反馈</a></li>
			</c:when>
			<c:otherwise>
				<li id = "li-8" ><a href="<c:url value="/views/jsp/login.jsp" />"  style="margin-left: 2px;">用户反馈</a></li>
			</c:otherwise>
		</c:choose>
		<li id = "li-9" ><a href="<c:url value="http://www.ahxcyy.com/Member/yplxcx.aspx" />">供应商流向下载</a></li>
	</ul>
</div>
<%-- <div class="nav_right fr" style="width: 243px;">
	<a href="<c:url value="/views/jsp/cms/help/index_d.jsp?id=271" />">联系我们</a>
	<a href="###" onclick="layer.feedBack()" style="margin-left: 2px;">用户反馈</a>
</div> --%>
<!--隐藏盒子-->
<div id="box-1" class="hidden-box hidden-loc-index" style="display: none">
	<ul>
		<li><a style="width:84px;" href="<c:url value="/views/jsp/cms/help/index_d.jsp?id=41" />">公司简介</a></li>
		<li><a style="width:84px;" href="<c:url value="/views/jsp/cms/help/_xc_index_d.jsp?id=GSYP" />">公司一瞥</a></li>
		<li><a style="width:84px;" href="<c:url value="/views/jsp/cms/help/index_d.jsp?id=263" />">企业文化</a></li>
		<li><a style="width:84px;" href="<c:url value="/views/jsp/cms/help/_xc_index_d.jsp?id=RYZS" />">荣誉证书</a></li>
		<li><a style="width:84px;" href="<c:url value="/views/jsp/cms/help/index_d.jsp?id=265" />">组织机构</a></li>
	</ul>
</div>
<div id="box-2" class="hidden-box hidden-loc-us" style="display: none">
	<ul>
		<li><a style="width:84px;" href="<c:url value="/news/searchPageNews.s?newsTypeId=241" />">公司新闻</a></li>
		<li><a style="width:84px;" href="<c:url value="/news/searchPageNews.s?newsTypeId=33" />">行业咨询</a></li>
	</ul>
</div>
<div id="box-3" class="hidden-box hidden-loc-info box03" style="display: none">
	<ul>
		<li><a style="width:84px;" href="<c:url value="/views/jsp/cms/help/_xc_index_d.jsp?id=ZZZS" />">资质证书</a></li>
		<li><a style="width:84px;" href="<c:url value="/views/jsp/cms/help/_xc_index_d.jsp?id=ZLBZ" />">质量保障</a></li>
	</ul>
</div>
<div id="box-4" class="hidden-box hidden-loc-info box04"
	style="display: none">
	<ul>
		<li><a style="width:84px;" href="<c:url value="/product/searchProduct.s" />">可供品种</a></li>
		<li><a style="width:84px;" href="<c:url value="/product/searchCommendProduct.s" />">推荐品种</a></li>
<%-- 		<li><a style="width:84px;" href="<c:url value="/brand/showBrandIndex.s" />">品牌专区</a></li>
		<li><a style="width:84px;" href="<c:url value="/product/searchProduct.s?orderByType=NEW_PRODUCT" />">新品上市</a></li> --%>
	</ul>
</div>
<div id="box-6" class="hidden-box hidden-loc-info box06"
	style="display: none">
	<ul>
		<%-- <li><a style="width:84px;" href="<c:url value="/views/jsp/center/sale/c_s_sale_details.jsp" />">流向查询</a></li> --%>
		<li><a style="width:84px;" href="<c:url value="/views/jsp/center/other/c_searchBatchPaper_list.jsp" />">检验单下载</a></li>
		<li><a style="width:84px;" href="<c:url value="/views/jsp/center/other/c_searchBatchPaper_list.jsp" />">首营资料下载</a></li>
	</ul>
</div>
<script>
	$(function() {
	    var num;
	    $('.nav-main>li[id]').hover(function(){
	        /*下拉框出现*/
	        var Obj = $(this).attr('id');
	        num = Obj.substring(3, Obj.length);
	        $('#box-'+num).slideDown(150);
	    } ,function(){
	        $('#box-'+num).hide();
	    } );
//	    hidden-box hover e
 	    $('.hidden-box').hover(function(){
	        $(this).show();
	    },function(){
	        $(this).slideUp(200);
	    }); 
	});
	function setFocus(num) {
		$("#nav ul li").removeClass("dq");
		$("#nav ul li").eq(num).addClass("dq");
	}
	var dialogFeedBack;
	var feedBackhtml;
	var feedBackpage = {};
	feedBackpage.url = '<c:url value="/views/jsp/include/dialog_feedback.jsp" />';
	feedBackpage.ok = function(datas) {
		feedBackhtml = datas;
	};
	if (feedBackhtml) {
		feedBackpage.html = feedBackhtml;
	}
	layer.feedBack = function(options) {
		options = options || {};
		dialogFeedBack = $.layer({
			type : 1,
			title : '用户反馈',
			offset : [ ($(window).height() - 360) / 2 + 'px', '' ],
			border : [ 5, 0.5, '#666' ],
			area : [ '550px', '400px' ],
			shadeClose : true,
			page : feedBackpage
		});
	};
</script>
	
 